package tr.com.oyunus.bootstrap;

import tr.com.oyunus.game.GameFactory;
import tr.com.oyunus.game.impl.DefaultGameFactory;
import tr.com.oyunus.token.TokenFactory;
import tr.com.oyunus.token.impl.DefaultTokenFaktory;
import tr.com.oyunus.user.UserFactory;
import tr.com.oyunus.user.impl.DefaultUserFactory;

/**
 * User: f2xy
 * Date: 02.01.2012
 */
public class FactoryManager {

    //todo Spring için uygun hale getirelecek

    private static TokenFactory tokenFactory = new DefaultTokenFaktory();
    private static UserFactory  userFactory = new DefaultUserFactory();
    private static GameFactory gameFactory = new DefaultGameFactory();

    public static TokenFactory getTokenFactory() {
        return tokenFactory;
    }

    public static UserFactory getUserFactory() {
        return userFactory;
    }

    public static GameFactory getGameFactory() {
        return gameFactory;
    }
}
